package com.jkl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)//不要将空值解析为json
//注意Long的默认值为null，而long的默认值为0L，long的默认值会被jackson序列化和反序列化，因此建议使用Long类型
@TableName("account")
public class Account implements Serializable{
    @TableId(type = IdType.NONE)
    private String email;
    private String password;
    private String userName;
    private String sign;
    private Long createTime;
    private Long alterTime;
}

